<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
    <h1>Login page</h1>
    <p>User角色用户：forezp/123456</p>
    <p>Admin 角色用户：admin/123456</p>
    <p th:if = "{loginError}" class = "error" >用户名或是密码错误</p>
    <form th:action="@{/login}" method="post">
        <label >用户名</label>
        <input type="text" id="username" name="username" autofocus="autofocus"/><br/>
        <label >密码</label>
        <input type="password" id="password" name="password"/><br/>
        <input type="submit" value="登录"/>
    </form>
    <p><a href="/index" th:href = "@{/index}"></a></p>
</body>
</html>